<?php
namespace Erp\Controller;
use Think\Controller;
class OrdersInfoController extends Controller{
    /**
     * @param $table
     * @param $map
     * @param $method
     * @param string $data = ‘1218229879,1218229885’
     * 通用Order方法
     */
    public function Order($table,$where,$method,$data=''){
        $param = array();
        $param['table'] = $table;
        $param['where'] = $where;
        $param['method'] = $method;
        $param['data'] = $data;
        $json = json_encode($param);
        $url = 'http://192.168.0.235/erp2/index.php?s=Erp-CrontabManage-operateMysql&param='.$json;
        $res = file_get_contents($url);
        return $res ;
    }
}